{include file=header.html}
        <script language="javascript" type="text/javascript" src="{res file=js/jquery-1.2.6.js}"></script>
        <script language="javascript" type="text/javascript" src="{lib file=jquery.plugins/jquery.validate.js}"></script>
        <script language="javascript" type="text/javascript" src="{res file=js/common.js}"></script>
        <script language="javascript" type="text/javascript" src="{res file=js/lan.js}"></script>
        <script language="javascript" type="text/javascript">
		 </script>
        <link href="template/style/css/style.css" type="text/css" rel="stylesheet" />
        <style>
            label.error {color:red;}
			.tab-frame td {padding:5px 2px; text-align:left;}
			.tab-search td {padding:2px 5px;}
			.tab-frame td.right {text-align:right;}
			.tab-frame td.center {text-align:center;}
        </style>
    </head>
    <body>
        <div class="sub-body">
	<h3 class="title-1 tab-frame">用户统计</h3>
		<div id="head">
            <a href="javascript:;" onclick="$('#search').slideToggle();">收起/展开</a>
            <div  id="search">
                <div class="tab-frame-s">
                <form action="index.php" method="get">
                	<input type="hidden" name="app" value="schedule" />
                    <input type="hidden" name="act" value="perf_total" />
                    <table width="900" cellspacing="0" cellpadding="0" class="search" >
                    <tr>
                         <th width="100" class="right">年：</th>
                         <td><select name="year" id="year">
                                <option value="0">全部</option>
                                <!--{foreach from=$years item=year}-->
                                <option value="{$year}"{if $this_year == $year} selected{/if}>{$year}</option>
                                <!--{/foreach}-->
                            </select></td>
						<td><input type="hidden" name="order" id="order" value="{if $smarty.get.order}{$smarty.get.order}{else}reg_time-DESC{/if}" />
                        	<input type="submit" name="search" value="查询" class="btn-2" /></td>
                    </tr>
                </table>
                    </form>
                </div>
            </div>
            </div>
            <div class="Create" style="margin-top: 10px;">
                <input type="button" class="btn-2" value="用户统计" onclick="location.href='index.php?app=schedule&act=perf_total'"/>
				<input type="button" class="btn-2" value="客户下单量统计" onclick="location.href='index.php?app=schedule&act=perf_total&consumer_order=1'"/>
				<input type="button" class="btn-2" value="返回" onclick="history.back();" />
            </div>
            <div class="tab_info" id="order_list">
                <div class="tab-title-1"><span>统计信息</span></div>
                <table width="100%" cellspacing="0" cellpadding="0" class="tab-display" id="tab-color">
				<!--{if $merch_list}-->
                    <tr>
                        <th width="">跟单</th>
                        <th width="80">用户数</th>
                        <th width="60">1</th>
                        <th width="60">2</th>
                        <th width="60">3</th>
                        <th width="60">4</th>
                        <th width="60">5</th>
                        <th width="60">6</th>
                        <th width="60">7</th>
                        <th width="60">8</th>
                        <th width="60">9</th>
                        <th width="60">10</th>
                        <th width="60">11</th>
                        <th width="60">12</th>
                    </tr>
                    <!--{foreach from=$merch_list item=merchs}-->
                    <tr>
                        <td>{$merchs.user_name}</td>
                        <td><a href="{url app=schedule&act=consumer_list&year=$this_year&merch_id=$merchs.user_id}">{$merchs.user_count}</a></td>
						<!--{foreach from=$merchs.quantitys item=quantity key=k}-->
                        <td><!--{if $quantity}--><a href="{url app=schedule&act=consumer_list&year=$this_year&month=$k&merch_id=$merchs.user_id}">{$quantity}</a><!--{else}-->0<!--{/if}--></td>
						<!--{/foreach}-->
                    </tr>
                    <!--{/foreach}-->
				<!--{/if}-->
                </table>
                <div class="page">
                  {include file=page.html}</div>
            </div>
            <script language="JavaScript">
                function create_order(){
                   location.href='index.php?app=order&act=add';
                    return;
                   $('#head').hide();
                    $('#order_list').hide();
                    $('#order_info').hide().load('{$siteurl}/index.php?app=order&act=add','',function(){
                        $.get('{$siteurl}/index.php?app=order&act=add',function(data){
                            $('#order_info').html(data);
                        });
                      $('#order_info').fadeIn('slow');});
                }
                
            </script>
        </div>
<script language="javascript" type="text/javascript" src="{res file=js/tab_color.js}"></script>
    </body>
</html>